import java.util.Scanner;
public class zifuchuan{
  public static void main(String args[]){
    Scanner sca = new Scanner(System.in);
    String str = sca.nextLine();
    StringBuffer sb = new StringBuffer(str);
    System.out.print(sb.reverse().toString());
  }
}